import request from "@/utils/request";
import type { AxiosPromise } from "axios";
import type { TbAuditMessageQuery, TbAuditMessageVo } from "./type";

// 审计信息列表
export function listTbAuditMessage(query: TbAuditMessageQuery): AxiosPromise<TbAuditMessageVo[]> {
  return request({
    url: "/audit/message/list",
    method: "get",
    params: query
  });
}

// 审计信息详细
export function getTbAuditMessage(id: string | number): AxiosPromise<TbAuditMessageVo> {
  return request({
    url: "/audit/message/" + id,
    method: "get"
  });
}
